package cn.arnold.offer.iqiyi;

import cn.arnold.offer.bean.Person;

import java.util.HashMap;
import java.util.Map;

public class MapPutDemo {
    public static void main(String[] args) {
        Map<String, Person> map = new HashMap<>();
        Person person = new Person();
        person.setAge(10);
        person.setName("arnold");
        map.put("vip",person);
        System.out.println(map.get("vip"));
        person.setName("zlatan");
        System.out.println(map.get("vip"));
    }

}
